# 【练习】模拟乘车过程
# 编写一个 Python 程序，模拟乘坐公交车过程，并且可以有座位坐下。要求：输入公交卡当前的余额，只要不低于2元，就可以上公交车；如果车上有空座位，就可以坐下。
from 测吧.src.week1.day4.simulated_ride import *
def test_simulated_ride(seat):
    if seat == "有座位":
        assert simulated_ride(2,seat) == "坐上车，车上有空座位，坐下了"
    else:
        assert simulated_ride(2,seat) == "坐上车，没座位，站着了"
    assert simulated_ride(1,seat) == "没钱，上不了车"
test_simulated_ride(seat)
